Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

Upgrading to WebsydianExpress v1.2 - iSeries

Introduction

This document describes how to upgrade to WebsydianExpress v1.2 from a previous version of WebsydianExpress (1.0/1.1) on the iSeries platform.

Please refer to WebsydianExpress 1.2 - What Is New? for information about new features and changes in WebsydianExpress v1.2.

For information on how to upgrade the development environment please read Upgrade Development Environment to WebsydianExpress v1.2.

Libraries referenced in the document

In this document, a number of iSeries libraries will be referenced. As the exact name of the libraries are customizable, the name of the libraries can vary from installation to installation. The following table lists the libraries and their default names.

Library Default Name (version 1.0 / version 1.1)
Express Database Library WXP10DB / WXP11DB
Express Program Library WXP10PGM / WXP11PGM
Express Application Library WXP10APP / WXP11APP
Express PTF Library WXP10PTF / WXP11PTF

In the rest of the document, these libraries will be referred by the term specified in the Library Column.

WebsydianExpress 1.2 is backward compatible with business processes developer with WebsydianExpress 1.0/1.1.

So all objects in the Express Application Library can be left untouched and will not be affected by the upgrade process.

Before You Start

Stop WebsydianExpress

The first step is to stop WebsydianExpress.

  1. Stop WebsydianExpress using the STOP command found in the Express Program Library.
  2. Stop the WebsydianExpress application on the web server.

Backup of existing installation

It is important that you take a backup of your WebsydianExpress installation before you start the upgrade process in case something should go wrong.

Take a backup of the following libraries:

Web Server component (relay service):

Take a backup of the web server component on the web server. The default name of the web server component is express.war.

Upgrade WebsydianExpress Application

*ALLOBJ authority is required to perform the updates

Move savefile to iSeries

The Upgrade zip file contains an exe file: WXP12UPG.exe. By running this exe file, the update library WXP12UPG will be created on the iSeries. If a library with this name already exist on the iSeries, you will be prompted for another library name.

If you use the exe file to transport the upgrade to the iSeries, the objects will automatically be restored to the library.

You have also got the option to FTP the save file WXP12UPG to the iSeries manually.

If you choose this option, you must restore the save file manually.

Restore the save file WXP12UPG. Use the RSTLIB command.

This will restore a library containing the necessary objects to perform the update.

RSTLIB SAVLIB(WXP12UPG) DEV(*SAVF) SAVF(*LIBL/WXP12UPG)

Add upgrade library to library list

Add the update library to the library list for the interactive session you will use to perform the update:

 

ADDLIBLE WXP12UPG *FIRST

Remove objects from PTF library

Delete all the objects from the PTF library that has been delivered by Websydian.

Restore new set of program objects (runtime)

Restore the save file WXP12PGMUP to the Express Program Library - overwrite existing objects.

This updates the WebsydianExpress runtime with a new set of runtime objects.

RSTLIB SAVLIB(WXP12PGMUP) DEV(*SAVF) SAVF(*LIBL/WXP12PGMUP)MBROPT(*ALL)  ALWOBJDIF(*ALL) RSTLIB(Express Program Library)

Default for "Express Program Library": WXP10PGM, WXP11PGM.

Update Message file

The message file S2SYMSGF in the Express Database Library must be overwritten by a new version. This is done by running the command WXPUPMSGF from the update library. The command has one input parameter - the database library (This library must contain the S2SYMSGF file).

WXPUPMSGF DBLIB(Express Database Library)

Default for "Express Database Library": WXP10DB, WXP11DB.

Install new database files

A number of new files has been introduced in the new version. These files are copied from the save file WXP12DBUPG found in the update library. The logical files are created for the files, and the necessary character set conversion is done for the files.

This is all done by running the command WXPUPFILE found in the update library. The command has one input parameter - the database library.

WXPUPFILE DBLIB(Express Database Library)

Default for "Express Database Library": WXP10DB, WXP11DB.

Install new IFS objects

A number of new and updated templates, script, and jar files must be updated to the IFS.

This is done by running the command WXPUPIFS found in the update library. The command has one input parameter - the base WebsydianExpress folder.

If you are in doubt about which folder to specify, prompt the STRWS command in the Express Program Library - the folder is specified as the option WSYDDIR.

WXP12UPG/WXPUPIFS IFSDIR(Base WebsydianExpress folder)

Default for "Base WebsydianExpress Folder": /websydian/EXPRESS10,  /Websydian/EXPRESS11

Install new command to start and stop WebsydianExpress

New parameters has been defined for the commands STRAS and RUNAS. As part of the installation, the command defaults defined for the existing commands are transferred to the new commands.

The commands are updated by the command WXPUPCMD. This command has one parameter, the Express Program Library.

WXPUPCMD PGMLIB(Express Program Library)

Default for "Express Program Library": WXP10PGM, WXP11PGM.

A new command RSTAS has also been installed in the Express Program Library. Default values for this command are restored from the STRAS command. However, this leaves two undefined parameters that you must change manually by using the CHGCMDDFT command.

The two parameters RSADDR, and RSPORT.

The values you should specify for the RSADDR and RSPORT parameters can be found by prompting the ENDAS command found in the Express Program Library.

Upgrade Servlet Web Server Component

Update information in the RelayService.prop file:

Open the RelayService.prop file located in the folder "Relay Service" using notepad and add the following setting:

 

servlet.errorpage.url=/error.jsp

For upgrading the Servlet Web Server Component you have the following options:

Using the pack.exe for repackaging the express.war file:
  1. On the computer where you ran the installation program for installing WebsydianExpress for iSeries locate the WebsydianExpress for iSeries folder (e.g. c:\Program Files\Websydian\WebsydianExpress for iSeries).
  2. Copy the folder Relay Service from the upgrade package to the folder located in step 1 overwriting all existing files.
  3. Execute the Pack.exe located in the Relay Service folder.
    Pack.exe will guide you through the parameters for the Servlet Web Server Component and perform the packaging of the express.war file.
  4. Deploy the express.war file to your servlet engine. Please note that the pack.exe will automatically deploy the express.war file on the locally installed Tomcat engine if installed.
Manually upgrade the express.war file:

If you are familiar with war files and understand the structure you can perform the upgrade of the Servlet Web Server Component by copying the content of the folder "Manual Upgrade" located in the upgrade package under the "Relay Service" folder to your express.war file.

Remember to remove the file WSYDDWA20.jar file from the folder "WEB-INF\lib" in your express.war file.

Send your express.war file to support@websydianexpress.com for upgrade:

We can perform the upgrade of your express.war file for you if you do not feel like you are up for the challenge, just send the following information to support@websydianexpress.com:

  1. Your existing express.war file
  2. Your existing relayservice.prop file

Restart Application

If you update the application from WebsydianExpress 1.0 - you should remove the installed PLEX library

After updating the application and reloading/deploying the war file on the webserver, restart the application using the START command in the Express Program Library. Access the site in the Browser.

Trouble Shooting

If the Site is not loaded correctly start by checking that you have removed all websydian delivered objects from the PTF library.

After this update the library list job description EXPRESS found in the Express Database Library - move the Express Program List to the top of the library list. The reason for this advice is that we have encountered a couple of installations where Websydian runtime objects of unknown reasons had been placed in the Express Application Library (together with the user developed objects).

After updating the library list, restart the application using the STOP and START commands.

Define PageModeler business process

Perform this section if you are upgrading from version 1.0 - and want to use RPG Developer and/or 2E Developer.

Define New Folders

For RPG Developer and 2E Developer some new IFS folders has been installed. These folders need to be defined using the administration interface.

If you have upgraded from version 1.1, the RPGDeveloper folder and the PageModeler is already defined.

If you do not want to use the RPG Developer and/or the 2E Developer, there are no reason to define the folders - they will only be unnecessary "fill" in the system.

PageModeler Folder

Perform this section if you are upgrading from version 1.0 - and want to use RPG Developer and/or 2E Developer.

If you want to use the PageModeler business process, it is recommended that you define the PageModeler folder with the settings described below.

The PageModeler business process is used for creating HTML templates for both RPG Developer and 2E Developer.

If you upgrade from version 1.1, this step is not necessary.

The PageModeler Folder should be defined for each site where you want to be able to create HTML templates using the PageModeler.

RPGDeveloper Folder

Perform this section if you are upgrading from version 1.0 - and want to use RPG Developer and/or 2E Developer.

The RPGDeveloper folder contains the templates for the two RPG Examples. If you want to run these examples you should define the RPGDeveloper folder with the settings described below.

If you upgrade from version 1.1, this step is not necessary.

2E Developer Folder

Perform this section if you want to use 2E Developer.

The 2EDeveloper folder contains the templates for the 2E Examples. If you want to run this example you should define the 2EDeveloper folder with the settings described below.

Installing the 2E Developer

Perform this section if you want to use 2E Developer.

One of the major new features for version 5.7 is the possibility to create business processes for WebsydianExpress using 2E. The installation of the 2E Developer is optional, if you do not want to develop using 2E, do not perform this step.

Make definitions for example for RPG developer

Perform this section if you are upgrading from version 1.0 - and want to run the RPG Developer examples.

If you have upgraded from WebsydianExpress 1.0, the objects needed for the RPG Developer example has been installed, but the business processes has not been made available in the site structure. If you have upgraded from version 1.1, these definitions is in place.

This step is optional, it is only necessary if you want to run the RPG example business processes.